﻿namespace VirtualTemplates
{
    using System;

    /// <summary>
    /// Represents the http caching policy for virtual files.
    /// </summary>
    public class VirtualFileCachePolicy
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="VirtualFileCachePolicy"/> class.
        /// </summary>
        public VirtualFileCachePolicy()
        {
            this.MaxAge = new TimeSpan(1, 0, 0, 0);
        }

        /// <summary>
        /// Gets or sets the time span used to set the Cache - Control: max-age header. 
        /// </summary>
        /// <value>
        /// The time span.
        /// </value>
        public TimeSpan MaxAge { get; set; }
    }
}
